package com.guoranhao.business.service;

import com.guoranhao.business.model.EsSpu;
import com.guoranhao.business.model.EsSpuExample;
import com.guoranhao.business.model.ShoppingCart;
import com.guoranhao.business.vo.EsSpuVo;

import java.util.List;

public interface EsSpuService extends BaseService<EsSpu, EsSpuExample>  {
    /**
     * Description:  查询购物车数量<br/>
     * Version V1.0  2019-8-28 18:13  by 秦涛   (qintao@cloud-young.com) 创建
     * @param openId 用户id
     * @return 购物车数量
     */
    Integer getShoppingCartCount(String openId);

    /**
     * Description:  查询购物车列表<br/>
     * Version V1.0  2019-8-28 18:57  by 秦涛   (qintao@cloud-young.com) 创建
     * @param openId 用户id
     * @return 购物车列表
     */
    List<EsSpuVo> getShoppingCartList(String openId);

    /**
     * Description:  添加商品到购物车<br/>
     * Version V1.0  2019-8-29 15:40  by 秦涛   (qintao@cloud-young.com) 创建
     * @param shoppingCart 参数
     * @return true成功
     */
    Boolean addGoods(ShoppingCart shoppingCart);
}
